//webpack启动或打包时，这是src源码运行的第一行代码
//安装两个包
//npm i react -S  提供了React MVVM所有功能(声明式，组件化)
//npm i react-dom -S 提供了有个render方法用于把react组件渲染到真实DOM上

//集成React
//引入React为了支持JSX语法
import React from 'react'
import ReactDOM from 'react-dom'
//App是React类(React组件)
import App from './App.jsx'
import common from './assets/test.scss' //eslint-disable-line
//< App />是React元素(JSX元素)
ReactDOM.render(< App />,document.getElementById('app')) //eslint-disable-line


















// //自定义txtloaders
// import txt from './assets/img.txt'
// console.log('转换后的txt',txt);//eslint-disable-line

//DOM
// document.getElementById('hello').style.color='red'
// //图片模块
// import img1 from './assets/qq.png'
// //css模块
// import test from './assets/test.scss'
// //sass模块
// import style from './assets/style.css'
// document.getElementById('img').src=img1